﻿using Dapper;
using System;
using BCEntity.TMS.VehicleSuiteBusinessConfig;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;
using BCCommon.TMS.Transport;

namespace BCData.TMS.VehicleSuiteBusinessConfig
{
	/// <summary>
	/// 车辆套餐业务配置
	/// </summary>
	public interface IVehicleSuiteBusinessConfigData
	{
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="vehicleSuiteBusinessConfigId">车辆套餐业务配置Id</param>
		Task<bool> Exists(int vehicleSuiteBusinessConfigId);
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="vehicleTransportBusinessConfigId">车辆运输业务配置Id</param>
		/// <param name="suiteBusinessType">套餐业务类型</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="agentRecordId">代理商Id</param>
		Task<bool> Exists(long vehicleTransportBusinessConfigId,VehicleSuiteBusinessType suiteBusinessType,string countyCode,long agentRecordId);
		/// <summary>
		/// 增加车辆套餐业务配置
		/// </summary>
		/// <param name="entity">车辆套餐业务配置信息</param>
		Task<VehicleSuiteBusinessConfigEntity> Add(VehicleSuiteBusinessConfigEntity entity);
		/// <summary>
		/// 更新车辆套餐业务配置
		/// </summary>
		/// <param name="entity">车辆套餐业务配置信息</param>
		Task<VehicleSuiteBusinessConfigEntity> Update(VehicleSuiteBusinessConfigEntity entity);
		/// <summary>
		/// 获取车辆套餐业务配置
		/// </summary>
		/// <param name="vehicleSuiteBusinessConfigId">车辆套餐业务配置Id</param>
		Task<VehicleSuiteBusinessConfigEntity> GetEntity(int vehicleSuiteBusinessConfigId);
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="vehicleTransportBusinessConfigId">车辆运输业务配置Id</param>
		/// <param name="suiteBusinessType">套餐业务类型</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="agentRecordId">代理商Id</param>
		Task<VehicleSuiteBusinessConfigEntity> GetEntity(long vehicleTransportBusinessConfigId, VehicleSuiteBusinessType suiteBusinessType, string countyCode, long agentRecordId);
		/// <summary>
		/// 获取车辆套餐业务配置列表
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		Task<IEnumerable<VehicleSuiteBusinessConfigEntity>> GetList(long agentRecordId);

		/// <summary>
		/// 获取车辆套餐业务配置列表
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="vehicleTransportBusinessConfigId">车辆运输业务配置Id</param>
		Task<IEnumerable<VehicleSuiteBusinessConfigEntity>> GetList(long agentRecordId, string countyCode, int vehicleTransportBusinessConfigId);
		/// <summary>
		/// 获取车辆套餐业务配置分页列表
		/// </summary>
		/// <param name="agentRecordId">代理商Id</param>
		/// <param name="suiteBusinessName">套餐业务名称</param>
		/// <param name="provinceCode">省份编码</param>
		/// <param name="cityCode">城市编码</param>
		/// <param name="countyCode">区县编码</param>
		/// <param name="suiteBusinessType">套餐业务类型</param>
		/// <param name="enabled">启用/禁用</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">每页数据条数</param>
		Task<(IEnumerable<VehicleSuiteBusinessConfigEntity>, int)> Query(long? agentRecordId, string suiteBusinessName, string provinceCode, string cityCode, string countyCode, VehicleSuiteBusinessType? suiteBusinessType, bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		/// <summary>
		/// 启用车辆套餐业务配置
		/// </summary>
		/// <param name="vehicleSuiteBusinessConfigId">车辆套餐业务配置Id</param>
		/// <param name="adminId">员工Id</param>
		/// <param name="fullname">员工姓名</param>
		Task<bool> Enabled(int vehicleSuiteBusinessConfigId, long adminId, string fullname);
		/// <summary>
		/// 禁用车辆套餐业务配置
		/// </summary>
		/// <param name="vehicleSuiteBusinessConfigId">车辆套餐业务配置Id</param>
		/// <param name="adminId">员工Id</param>
		/// <param name="fullname">员工姓名</param>
		Task<bool> Disabled(int vehicleSuiteBusinessConfigId, long adminId, string fullname);
		#endregion  成员方法
	}


}